package com.wclass.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 首页搜索关键词
 * </p>
 *
 * @author SEN
 * @since 2019-03-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("index_search_word")
public class IndexSearchWord extends SuperEntity<IndexSearchWord> {

    /**
     * 搜索关键词
     */
    private String word;
    /**
     * 搜索类型，0：推荐，1：群，2：用户，3：课程，4：帖子
     */
    private Integer type;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 次数
     */
    private Integer count;

}
